package com.dream.wukong.common.core.importexport.excel;

import com.dream.wukong.common.core.importexport.csv.impl.CsvImportImpl;
import com.dream.wukong.common.core.importexport.csv.parser.AbstractParser;
import org.springframework.stereotype.Component;

/**
 * @Author: wuyichao
 * @Description:
 * @Date: Created in 9:54 2018/9/19.
 * @Modified:
 */
@Component("excleImport")
public class ExcelImportImpl extends CsvImportImpl {
    AbstractParser parser = new ExcelWriter();

    public AbstractParser getParser() {
        return parser;
    }

    public void setParser(AbstractParser parser) {
        super.setParser(parser);
    }

    public ExcelImportImpl() {
        parser.setEncoding("gbk");
        setParser(parser);
    }

}